omelette:\
	omelette/sim\

CLEAN+=\
	omelette/sim\

EVERYTHING+=omelette

OMELETTEOBJ=\
	omelette/sim.o\
	omelette/omelette.o\

include $(OMELETTEOBJ:.o=.d)
CLEAN+=$(OMELETTEOBJ)

TESTS+=.omelette_test

.omelette_test: ./omelette/test
	./omelette/test ".*test" && touch $@

CLEAN += .omelette_test

omelette/test:\
	omelette/test.cc\
	$(OMELETTEOBJ)\
	utils/utils.a\
	search/search.a
	@echo $@
	@$(CXX) $^ $(LDFLAS) -o $@

CLEAN += omelette/test

omelette/sim:\
	$(OMELETTEOBJ)\
	omelette/main.o\
	utils/utils.a\
	structs/structs.a\
	search/search.a
	@echo $@
	@$(CXX) $^ $(LDFLAGS) -o $@

include omelette/main.d

CLEAN += omelette/main.o
